
#ifndef IMPORTDIALOG_H
#define IMPORTDIALOG_H

#include <BRadioBox>
#include <BCheckBox>
#include <BGroupBox>
#include <BListWidget>
#include <BTreeWidget>
#include <BDialog>

using namespace BWE;

class ImportDialog : public BDialog
{
	BOBJECT(ImportDialog)
public:
	ImportDialog(BWidget* parent = 0);
	~ImportDialog();

	void setFileNames(const BStringList& fileNames);

protected:
	void freshItemIcon(BTreeItem* item);
	void freshFolderItems(BTreeItem* item);
	void openFolderItem(BTreeItem* item);
	void closeFolderItem(BTreeItem* item);

protected:
	void slotFolderGroupBoxToggled(BObject* object, const BValue& value);
	void slotImportButtonClicked(BObject* object, const BValue& value);
	void slotCancelButtonClicked(BObject* object, const BValue& value);

protected:
	virtual void styleEvent(const BEvent& event);

private:
	BTreeWidget*	_treeWidget;
	BGroupBox*		_folderGroupBox;
	BCheckBox*		_childFolderCheckBox;

	BButton*		_importButton;
	BButton*		_cancelButton;

	BString			_message;
};

#endif
